<template>
	<view class="notice-details bgcolor1 p-2 m-h100">
		<template v-if="curdetails">
			<view class="fs-40 font-weight-bold ftcolor1 pt-4 pb-2 text-center">{{curdetails.title}}</view>
			<view class="fs-24 ftcolor1 flex ftcolor4 mb-1">
				<text class="mr-2">发布时间：{{curdetails.created_at}}</text>
			</view>
			<view class="fs-24 ftcolor1 flex ftcolor4 mb-2 justify-between">
				<text v-if="curdetails.department">来源：{{curdetails.department.name}}</text>
				<view class="fs-20 ftcolor2 flex align-center" v-if="curdetails.address">
					<u-icon name="map" color="#507EF7" size="20"></u-icon>
					<text class="ml-1">{{curdetails.address}}</text>
				</view>
			</view>
			
			<view class="fs-28 ftcolor3 content"  style="line-height: 25px;" v-html="curdetails.info"></view>
		</template>
		<noneBox v-else></noneBox>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				curdetails:null
			}
		},
		created() {
			uni.setNavigationBarTitle({
				title: this.$route.query.title + '-详情'
			});
			const curdetails = uni.getStorageSync('xiangcundaolandetails')
			if(curdetails){
				this.curdetails = curdetails
			}
		},
		methods: {

		}
	}
</script>

<style>

</style>